{include file="admin/public/header" /}
    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="col-sm-12">
                <div class="middle-box text-center animated fadeInRightBig">
                    <div class="error-desc">
                        <div class="row">

                      <?php switch ($code) {?>
                        <?php case 1:?>
                            <div class="col-sm-12">
                                <div class="panel panel-primary">
                                
                                    <div class="panel-heading">
                                        操作信息
                                    </div>
                                    <div class="panel-body">
                                        <p><?php echo(strip_tags($msg));?></p>
                                        <p>页面自动<a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></p>
                                    </div>

                                </div>
                            </div>
                           <?php break;?>
                           <?php case 0:?>
                            <div class="col-sm-12">
                                <div class="panel panel-danger">
                                
                                    <div class="panel-heading">
                                        操作信息
                                    </div>
                                    <div class="panel-body">
                                        <p><?php echo(strip_tags($msg));?></p>
                                        <p>页面自动<a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></p>
                                    </div>

                                </div>
                            </div>


                         <?php break;?>
                        <?php } ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
 	 (function(){
            var wait = document.getElementById('wait'),
                href = document.getElementById('href').href;
            var interval = setInterval(function(){
                var time = --wait.innerHTML;
                if(time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
        })();
</script>